//package org.arain.baseii.Interceptor;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.HandlerInterceptor;
//import org.springframework.web.servlet.ModelAndView;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
//@Configuration
//public class SimpleInterceptor extends WebMvcConfigurerAdapter{
//		@Override
//		public void addInterceptors(InterceptorRegistry registry) {
//			HandlerInterceptor interceptor = new HandlerInterceptor() {
//				
//				@Override
//				public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
//					String uri = request.getRequestURI();
//					System.out.println("请求地址："+uri);
//					return true;
//				}
//				
//				@Override
//				public void postHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, ModelAndView arg3)
//						throws Exception {
//					
//				}
//				
//				@Override
//				public void afterCompletion(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, Exception arg3)
//						throws Exception {
//				}
//			};
//			registry.addInterceptor(interceptor).addPathPatterns("/*");
//		}
//}
